<?php
/* @var $this InstrumentController */
/* @var $model InstrumentDate */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
    'id'=>'instrument-elem-form',
    'enableAjaxValidation'=>false,
)); ?>

    <p class="note">Fields with <span class="required">*</span> are required.</p>

    <?php echo $form->errorSummary($model); ?>

   <div class="row">
        <?php echo $form->labelEx($model,'asset_number'); ?>
        <?php echo $form->textField($model,'asset_number',array('size'=>50,'maxlength'=>50)); ?>
        <?php echo $form->error($model,'asset_number'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model,'status'); ?>
        <?php echo $form->dropDownList($model,'status',array(InstrumentElem::STATUS_ACTIVE=>'可预约',InstrumentElem::STATUS_DEACTIVE=>'不可预约')); ?>
        <?php echo $form->error($model,'status'); ?>
    </div>

   <div class="row buttons">
        <?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
    </div>

<?php $this->endWidget(); ?>

</div><!-- form -->
